package com.crm.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;
    @TableField("userName")
    private String userName;
    @TableField("password")
    private String password;
    @TableField("phone")
    private String phone;
    @TableField("nickName")
    private String nickName;

//    @TableLogic
//    private Integer state;
//
//    @Version
//    private Integer version;

    @TableField(exist = false)
    private List<String> permissions;

}
